<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title><?php echo $title; ?></title>
<!--[if IE 6]>
 <link rel="stylesheet" type="text/css" href="<?php echo base_url()?>css/back_end/FixPNG.css" />
<![endif]-->
<link rel="shortcut icon" href="<?php echo base_url()?>images/back_end/logos/icoLogo.ico" type="image/x-icon" />
<link href="<?php echo base_url()?>css/back_end/admin.css" rel="stylesheet" media="screen" type="text/css" />
<link href="<?php echo base_url()?>css/back_end/style.css" rel="stylesheet" media="screen" type="text/css" />

<script type="text/javascript" src="<?php echo base_url()?>js/back_end/jquery.js"></script>
<script type="text/javascript" src="<?php echo base_url()?>js/back_end/admin.js"></script>

<!-- Tiny_mce -->
<script type="text/javascript" src="<?php echo base_url()?>tiny_mce/tiny_mce.js"></script>

<!-- js su dung validate form, moi form su dung se khai bao vao trong phan html can dung -->
<script type="text/javscript" src="<?php echo base_url()?>js/back_end/jquery.metadata.js"></script>
<script type="text/javascript" src="<?php echo base_url()?>js/back_end/jquery.validate.js"></script>

<!-- ma js su dung cho editer - TinyMCE -->
<script type="text/javascript">
		function call(id)
		{
		 tinyMCE.init({
			// General options
			mode : "exact",
			elements : id,
			theme : "advanced",
			skin : "o2k7",
			plugins : "markettoimages,phpimage,pagebreak,style,layer,table,save,advhr,advimage,advlink,emotions,iespell,insertdatetime,preview,media,searchreplace,print,contextmenu,paste,directionality,fullscreen,noneditable,visualchars,nonbreaking,xhtmlxtras,template,inlinepopups,autosave",
		
			// Theme options
			theme_advanced_buttons1 : "save,newdocument,|,bold,italic,underline,strikethrough,|,justifyleft,justifycenter,justifyright,justifyfull,formatselect,fontselect,fontsizeselect",
			theme_advanced_buttons2 : "cut,copy,paste,pastetext,pasteword,|,search,replace,|,bullist,numlist,|,outdent,indent,blockquote,|,undo,redo,|,link,unlink,anchor,markettoimages,cleanup,help,code,|,insertdate,inserttime,preview,|,forecolor,backcolor",
			theme_advanced_buttons3 : "tablecontrols,|,hr,removeformat,visualaid,|,sub,sup,|,charmap,emotions,iespell,media,advhr,|,print,|,ltr,rtl,|,fullscreen",
			theme_advanced_buttons4 : "insertlayer,moveforward,movebackward,absolute,|,styleprops,|,cite,abbr,acronym,del,ins,attribs,|,visualchars,nonbreaking,template,pagebreak,restoredraft",
			theme_advanced_toolbar_location : "top",
			theme_advanced_toolbar_align : "left",
			theme_advanced_statusbar_location : "bottom",
			theme_advanced_resizing : false,
		
			// Example content CSS (should be your site CSS)
			content_css : "css/content.css",
			 
			// Drop lists for link/image/media/template dialogs
			template_external_list_url : "lists/template_list.js",
			external_link_list_url : "lists/link_list.js",
			external_image_list_url : "lists/image_list.js",
			media_external_list_url : "lists/media_list.js",
		
			// Replace values for the template plugin
			template_replace_values : {
				username : "Some User",
				staffid : "991234"
			},
			relative_urls : false
		}); 
		}	
		
		function edittext(id)
		{
			 tinyMCE.init({
					// General options
				 	mode : "exact",
					elements : id,
					theme : "advanced",
					skin : "o2k7",
					plugins : "markettoimages,pagebreak,style,layer,table,save,advhr,advimage,advlink,emotions,iespell,insertdatetime,preview,media,searchreplace,print,contextmenu,paste,directionality,fullscreen,noneditable,visualchars,nonbreaking,xhtmlxtras,template,inlinepopups,autosave",
					// Theme options					
					theme_advanced_buttons1 : "save,newdocument,|,bold,italic,underline,strikethrough,|,justifyleft,justifycenter,justifyright,justifyfull,formatselect,fontselect,fontsizeselect",
					theme_advanced_buttons2 : "search,|,bullist,numlist,|,undo,redo,|,link,unlink,|,insertdate,inserttime,preview,|,forecolor,backcolor,markettoimages",					
					theme_advanced_buttons3 : "",
					theme_advanced_buttons4 : "",
					theme_advanced_toolbar_location : "top",
					theme_advanced_toolbar_align : "left",
					theme_advanced_statusbar_location : "bottom",
					// theme_advanced_resizing : true,

					// Example content CSS (should be your site CSS)
					content_css : "css/content.css",
					 
					// Drop lists for link/image/media/template dialogs
					template_external_list_url : "lists/template_list.js",
					external_link_list_url : "lists/link_list.js",
					external_image_list_url : "lists/image_list.js"					
				}); 
		}
	</script>
<!-- menu ben trai (accordion-menu) -->
<script type="text/javascript">
$(document).ready(function(){ 
	$("#firstpane div.menu_head").click(function()
    {
		$(this).next("div.menu_body").slideToggle(300).siblings("div.menu_body").slideUp("fast");
	});	
});


</script>
<!-- End menu ben trai (accordion-menu) -->


<!-- dem so ô checkbox  -->
<script type="text/javascript">
checked=false;
function checkedAll (frmFrom) {
	var aa= document.getElementById('frmForm');
	if (checked == false){
    	checked = true;
    }else{
        checked = false
    }
	for (var i =0; i < aa.elements.length; i++) 
	{
	 	aa.elements[i].checked = checked;
	}
}

$(document).ready(function(){ 
	function countChecked() {
		var n = $("input.input_checkbox:checked").length;
	  	$(".count_check").text(n + (n <= 1 ? " is" : " are") + " checked !");
	}
	$(".input_checkbox").click(countChecked);
	$(".input_checkall").click(function(){
	   	checkedAll('frmFrom');
		countChecked();
	});
});
</script>
</head>

<body>
	<div id="logo">
		<div class="left_logo">
			<a href="<?php echo base_url()?>back_end/backend">
				<img src="<?php echo base_url(); ?>images/back_end/logo.png" />
			</a>
		</div>
		<!-- end left_logo -->
		
		<div class="right_logo">
			<span>Hi</span>
			<b><?php echo $_SESSION['username']; ?>,</b>
			<a href="#">Thông tin cá nhân</a>
			<span>|</span>
			<a href="<?php echo base_url() ?>back_end/login/logout">Thoát</a>
		</div>
		<!-- end right_logo -->
		
		<div class="cl_clear"></div>
	</div>
	<!-- end logo -->
	
	<div id="menu">
		<?php $this->load->view('back_end/menuleft_backend'); ?>
	</div>
	<!-- menu -->
	
	<div id="content">
		 <?php $this->load->view($content_admin);?>
	</div>
	<!-- end content -->
	
	<div id="footer">
		<table>
			<tr>
				<td>
				<span class="black">Bản quyền © 2006-2010 Ahashop.vn: &nbsp;</span>
				Mạng xã hội, mua sắm, đấu giá, tích hợp thanh toán trực tuyến
				</td>
			</tr>
			<tr>
				<td><span class="black">Giấy phép số : &nbsp;</span>239/GP-TTĐT Cục phát thanh truyền hình và thông tin điện tử, Bộ thông tin và truyền thông</td>
			</tr>
			<tr>
				<td><span class="black">Địa chỉ : &nbsp;</span>Số 171 Nguyễn Ngọc Nại - Phường Khương Trung Q.Thanh Xuân - TP Hà Nội - Việt Nam</td>
			</tr>
			<tr>
				<td><span class="black">Tell : &nbsp;</span>(84-4) 35 666 771 <span class="black">Fax: </span>(84-4) 35 666 772 <span class="black">Email : </span>
				<a href="#" class="blue">Contact@hbagroup.vn</a>
				</td>
			</tr>
			<tr>
				<td><span class="black">Website : &nbsp;</span><a href="#" class="blue">www.bhamedia.vn - www.hbagroup.vn</a></td>
			</tr>
		</table>
	</div><!-- end footer -->
	
</body>
</html>
